'use strict';

var __importDefault =
    (this && this.__importDefault) ||
    function (mod) {
        return mod && mod.__esModule
            ? mod
            : {
                  default: mod
              };
    };

exports.__esModule = true;
/*
  两种网络请求：postRequest => POST, getRequest => GET
  请求头header: 默认json，支持自定义({})或快速写入('form', 'json')
*/

var request_1 = require('../../utils/request');

var globalData_1 = require('../../globalData');

var marketingRequest = new request_1['default']({
    ApiUrl: globalData_1['default'].marketingUrl
}); // 【新客有礼活动】

exports.getNewUserRewards = function (params) {
    return marketingRequest.getRequest({
        url: 'app/activitys/getNewUserRewards',
        data: params
    });
}; // 【新客有礼活动详情】

exports.getNewUserRewardsDetail = function (params) {
    return marketingRequest.getRequest({
        url: 'app/activitys/newUserRewardsDetail',
        data: params
    });
}; // 【邀请奖励弹窗】

exports.getInviteTip = function (params) {
    return marketingRequest.getRequest({
        url: 'app/index/inviteTip',
        data: params
    });
}; // 【邀请奖励弹窗关闭】

exports.inviteTipClose = function (params) {
    return marketingRequest.getRequest({
        url: 'app/index/inviteTipClose',
        data: params
    });
}; // 【推广弹窗】

exports.getSpreadTip = function (params) {
    return marketingRequest.getRequest({
        url: 'app/index/spreadTip',
        data: params
    });
}; // 【推广弹窗关闭】

exports.spreadTipClose = function (params) {
    return marketingRequest.getRequest({
        url: 'app/index/spreadTipClose',
        data: params
    });
}; // 【推广审核弹窗】

exports.spreadAuditTip = function (params) {
    return marketingRequest.getRequest({
        url: 'app/index/spreadAuditTip',
        data: params
    });
}; // 【推广审核弹窗关闭】

exports.spreadAuditTipClose = function (params) {
    return marketingRequest.getRequest({
        url: 'app/index/spreadAuditTipClose',
        data: params
    });
};
